home *** CD-ROM | disk | FTP | other *** search
- Path: onramp.net!dean
- From: dean@onramp.net (Dean)
- Newsgroups: comp.lang.c++
- Subject: linking C & C++
- Date: 15 Mar 1996 13:51:38 GMT
- Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA
- Distribution: world
- Message-ID: <4ibsla$pll@news.onramp.net>
- Reply-To: dean@onramp.net
- NNTP-Posting-Host: dal43.onramp.net
-
- I'm doing some work on a system that now requires me to do a longjmp from a C
- program back into a C++ program. The whole thing is linked into one big
- executable. I am having some trouble getting the thing linked, and I have
- tried a number of different combinations. What I have is a signal(), and
- alarm(), and a longjmp() in the C file, and a setjmp() in the C++ file. I have
- tried defining the jmpbuffer in both files with it as an exter in the other,
- but the linker always gives me a not-found condition for the jmpbuffer. I know
- that there is probably some little something that I'm not doing correctly, but
- could use some ideas. There are function calls in the C++ file to functions in
- the C file, which then return, and everything there works just fine. Any
- suggestions? Thanks.
-
-
-